package com.dyh.quickdemo.demos.lbdFactoryBean;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.function.Function;

/*
@Author=Joey Wheeler
@Date=2021/1/11 14:40
*/
@SpringBootTest
public class FunctionFactoryBeanConfigTest {

//    @Resource(name = "functionFactoryBean")
//    Function function;

    @Resource(name = "XXservice$funEnhance")
    Function function;

    @Test
    public void test(){
        function.apply("dawd");
        function.apply("114");

        System.out.println();
    }
}
